﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace MsTestUtilities.SolutionAnalysis.Testing
{
    public class BuildConfigurationSelection
    {
        private List<BuildConfiguration> _buildConfigurations;

        public BuildConfigurationSelection(CsProject project, Func<CsProject, IEnumerable<BuildConfiguration>> configurationSelector)
        {
            Project = project;
            _buildConfigurations = configurationSelector(project).ToList();
        }

        public CsProject Project { get; private set; }

        public IEnumerable<BuildConfiguration> BuildConfigurations { get { return _buildConfigurations; } }
    }
}
